package com.gmrz.webauthn.protocol.v1.schema;


public enum AuthenticatorTransport {
    BLE("ble"),

    USB("usb"),

    NFC("nfc"),

    INTERNAL("internal");

    private String mValue;

    AuthenticatorTransport(String value) {
        this.mValue = value;
    }

    public String getName() {
        return this.mValue;
    }

    public static AuthenticatorTransport forName(String name) {
        for (AuthenticatorTransport t : values()) {
            if (t.getName().equalsIgnoreCase(name)) {
                return t;
            }
        }
        throw new IllegalArgumentException("Invalid Transports identifier: " + name);
    }

    public String toString() {
        return this.mValue;
    }
}
